<template>
  <div class="audition218">
    <v-md-preview :text="text1" />
  </div>
</template>

<script>
const prefix = '``` js'
const suffix = '```'
export default {
  name: 'Audition218',
  data() {
    return {
      text1: `${prefix}
      const fs = require('fs')
      const path = require('path')
      const getAllFile = function (dir) {
        function traverse(dir) {
          fs.readdirSync(dir).forEach(file => {
            const pathname = path.join(dir, file)
            if (fs.statSync(pathname).isDirectory()) {
              traverse(pathname)
            } else {
              console.log(file)
            }
          })
        }
        traverse(dir)
      }
      \n${suffix}`,
    }
  }
}
</script>

<style>

</style>